#ifndef criss_cross_H
#define criss_cross_H

#include <cv.h>
#include <highgui.h>

class CrissCross
{
private:
    IplImage* image;
    IplImage* src;
    int arr[20][20];
    bool turn;
    int n;
    int k;
    char* message;
    int height;
    int width;
    int textArea;
    bool ifFinished;
    CvPoint pt;
    CvFont font;

private:
    void drawCriss(IplImage* img, int i, int j, int radius, bool win);
    void drawCross(IplImage* img, int i, int j, int radius, bool win);
    void check (int player, int nx, int ny);

public:
    void mouseClicked( int x, int y, int player);
    bool show();
    CrissCross(int size, int areaForText, int num_n, int num_k);
    ~CrissCross();
};


#endif
